package com.msb.mall.order.dao;

import com.msb.mall.order.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.msb.mall.order.vo.PayVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 订单
 * 
 * @author dpb
 * @email dengpbs@163.com
 * @date 2022-10-08 23:03:30
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {

    PayVo getOrderByOrderSn(@Param("orderSN") String orderSN);

    void updateStatusByOrderSN(@Param("orderSN") String orderSN, @Param("code") int code);
}
